package com.zzh.net;


/**
 * Created by Emperor on 2017/6/21.
 */

public class HttpBaseUrl {
    /**
     * HTTP_ADDRESS_REST_Fx
     * HTTPS_ADDRESS_REST_FX
     * HTTP_ADDRESS_REST
     * HTTP_ADDRESS_PHOTO
     * HTTP_ADDRESS_H5
     * HTTP_ADDRESS_PAY
     * HTTP_ADDRESS_ACCOUNT
     * HTTP_ADDRESS_IM
     * HTTP_SHARE_ADDRESS_H5
     * HTTP_ERROR_COLLECT
     * CHANGE_SHORT_URL
     */

    //开发环境地址(Fx)
    public static String HTTP_ADDRESS_REST_Fx;
    public static String HTTPS_ADDRESS_REST_FX;
    public static String HTTP_ADDRESS_REST;
    public static String HTTP_ADDRESS_PHOTO;
    public static String HTTP_ADDRESS_H5;
    public static String HTTP_ADDRESS_PAY;
    public static String HTTP_ADDRESS_IM;
    public static String HTTP_SHARE_ADDRESS_H5;
    public static String HTTP_ERROR_COLLECT;
    public static String CHANGE_SHORT_URL;
    public static String HTTPS_ADDRESS_REST;
    public static String HTTP_ADDRESS_PAY2;
    public static String HTTP_ADDRESS_ACCOUNT;
    public static String HTTP_SHARE_ADDRESS_H5_TWO;
    public static String HTTP_HEALTH_H5;

    public static void config() {
        switch (NetConstants.HTTP_TYPE) {
            case NetConstants.DEBUG_HTTP:
                NetConstants.log_print = true;
                HTTP_ADDRESS_REST_Fx = "https://testoauth.meetao.com/";
                HTTPS_ADDRESS_REST_FX = "https://testfx.meetao.com/";
                HTTP_ADDRESS_REST = "https://testsvr.meetao.com/";
                HTTP_ADDRESS_PHOTO = "http://fdfs.meetao.com/fdfs/uploadMulti";
                HTTP_ADDRESS_H5 = "https://testh5.meetao.com/";
                HTTP_ADDRESS_PAY = "https://cspay.meetao.com/";
                HTTP_ADDRESS_IM = "https://testim.zimeitang.cn/";
                HTTP_SHARE_ADDRESS_H5 = "https://testmtmall.meetao.com/";
                HTTP_ERROR_COLLECT = "http://testlogs.meetao.com/";
                CHANGE_SHORT_URL = "http://api.ft12.com/api.php";
                HTTPS_ADDRESS_REST = "https://testoauth.meetao.com/";
                HTTP_ADDRESS_PAY2 = "https://cspay.meetao.com/";
                HTTP_ADDRESS_ACCOUNT = "https://cspay.meetao.com/";
                HTTP_SHARE_ADDRESS_H5_TWO = "https://testsmtmall.meetao.com/";
                HTTP_HEALTH_H5 = "https://testhealth.meetao.com/";
                break;
            case NetConstants.PREVIEW_HTTP:
                NetConstants.log_print = true;
                HTTP_ADDRESS_REST_Fx = "https://preoauth.meetao.com/";
                HTTPS_ADDRESS_REST_FX = "https://prefx.zimeitang.cn/";
                HTTP_ADDRESS_REST = "https://presvr.meetao.com/";
                HTTP_ADDRESS_PHOTO = "http://fdfs.meetao.com/fdfs/uploadMulti";
                HTTP_ADDRESS_H5 = "https://preh5.meetao.com/";
                HTTP_ADDRESS_PAY = "https://ipay.meetao.com/";
                HTTP_ADDRESS_IM = "https://preim.zimeitang.cn/";
                HTTP_SHARE_ADDRESS_H5 = "https://premtmall.meetao.com/";
                HTTP_ERROR_COLLECT = "http://prelogs.meetao.com/";
                CHANGE_SHORT_URL = "http://api.ft12.com/api.php";
                HTTPS_ADDRESS_REST = "https://preoauth.meetao.com/";
                HTTP_ADDRESS_PAY2 = "https://ipay.meetao.com/";
                HTTP_ADDRESS_ACCOUNT = "https://ipay.meetao.com/";
                HTTP_SHARE_ADDRESS_H5_TWO = "https://presmtmall.meetao.com/";
                HTTP_HEALTH_H5 = " https://prehealth.meetao.com/";
                break;
            case NetConstants.PRAY_HTTP:
                NetConstants.log_print = true;
                HTTP_ADDRESS_REST_Fx = "https://grayoauth.meetao.com/";
                HTTPS_ADDRESS_REST_FX = "https://grayfx.meetao.com/";
                HTTP_ADDRESS_REST = "https://graysvr.meetao.com/";
                HTTP_ADDRESS_PHOTO = "http://fdfs.meetao.com/fdfs/uploadMulti"; // 不动
                HTTP_ADDRESS_H5 = "https://grayh5.meetao.com/";
                HTTP_ADDRESS_PAY = "https://graypay.meetao.com/";
                HTTP_ADDRESS_IM = "https://im.zimeitang.cn/"; // 不动
                HTTP_SHARE_ADDRESS_H5 = "https://graymtmall.meetao.com/";
                HTTP_ERROR_COLLECT = "http://graylogs.meetao.com/";
                CHANGE_SHORT_URL = "http://api.ft12.com/api.php";
                HTTPS_ADDRESS_REST = "https://grayoauth.meetao.com/";
                HTTP_ADDRESS_PAY2 = "https://graypay.meetao.com/";
                HTTP_ADDRESS_ACCOUNT = "https://graypay.meetao.com/";
                HTTP_SHARE_ADDRESS_H5_TWO = "https://graysmtmall.meetao.com/";
                HTTP_HEALTH_H5 = "https://grayhealth.meetao.com/";
                break;
            case NetConstants.RELEASE_HTTP:
                NetConstants.log_print = false;
                HTTP_ADDRESS_REST_Fx = "https://oauth.meetao.com/";
                HTTPS_ADDRESS_REST_FX = "https://fx.zimeitang.cn/";
                HTTP_ADDRESS_REST = "https://svr.meetao.com/";
                HTTP_ADDRESS_PHOTO = "http://fdfs.meetao.com/fdfs/uploadMulti";
                HTTP_ADDRESS_H5 = "https://h5.meetao.com/";
                HTTP_ADDRESS_PAY = "https://prepay.meetao.com/";
                HTTP_ADDRESS_IM = "https://im.zimeitang.cn/";
                HTTP_SHARE_ADDRESS_H5 = "https://mtmall.meetao.com/";
                HTTP_ERROR_COLLECT = "http://logs.meetao.com/";
                CHANGE_SHORT_URL = "http://api.ft12.com/api.php";
                HTTPS_ADDRESS_REST = "https://oauth.meetao.com/";
                HTTP_ADDRESS_PAY2 = "https://prepay.meetao.com/";
                HTTP_ADDRESS_ACCOUNT = "https://prepay.meetao.com/";
                HTTP_SHARE_ADDRESS_H5_TWO = "https://smtmall.meetao.com/";
                HTTP_HEALTH_H5 = "https://health.meetao.com/";
                break;
            default:
                NetConstants.log_print = false;
                HTTP_ADDRESS_REST_Fx = "https://oauth.meetao.com/";
                HTTPS_ADDRESS_REST_FX = "https://fx.zimeitang.cn/";
                HTTP_ADDRESS_REST = "https://svr.meetao.com/";
                HTTP_ADDRESS_PHOTO = "http://fdfs.meetao.com/fdfs/uploadMulti";
                HTTP_ADDRESS_H5 = "https://h5.meetao.com/";
                HTTP_ADDRESS_PAY = "https://prepay.meetao.com/";
                HTTP_ADDRESS_IM = "https://im.zimeitang.cn/";
                HTTP_SHARE_ADDRESS_H5 = "https://mtmall.meetao.com/";
                HTTP_ERROR_COLLECT = "http://logs.meetao.com/";
                CHANGE_SHORT_URL = "http://api.ft12.com/api.php";
                HTTPS_ADDRESS_REST = "https://oauth.meetao.com/";
                HTTP_ADDRESS_PAY2 = "https://prepay.meetao.com/";
                HTTP_ADDRESS_ACCOUNT = "https://prepay.meetao.com/";
                HTTP_SHARE_ADDRESS_H5_TWO = "https://smtmall.meetao.com/";
                HTTP_HEALTH_H5 = "http://health.meetao.com/";
                break;
        }
    }


}
